package com.ltz.model;
// default package

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Transient;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import component.JsonDateTimeComponent;

/**
 * MnWellGroup entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "mn_well_group")
public class WellGroup implements java.io.Serializable {

	// Fields

	private Integer wellGroupId;
	private String wellGroupName;
	private Integer wellGroupType;
	private Date dateInput;
	private String owner;

	private String wellNames;
	
	private List<WellBasicData> wellList;
	// Constructors

	/** default constructor */
	public WellGroup() {
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "well_group_id", unique = true, nullable = false)
	public Integer getWellGroupId() {
		return this.wellGroupId;
	}

	public void setWellGroupId(Integer wellGroupId) {
		this.wellGroupId = wellGroupId;
	}

	@Column(name = "well_group_name", length = 50)
	public String getWellGroupName() {
		return this.wellGroupName;
	}

	public void setWellGroupName(String wellGroupName) {
		this.wellGroupName = wellGroupName;
	}
	@Column(name = "well_group_type", length = 4)
	public Integer getWellGroupType() {
		return wellGroupType;
	}

	public void setWellGroupType(Integer wellGroupType) {
		this.wellGroupType = wellGroupType;
	}
	@JsonSerialize(using=JsonDateTimeComponent.class) 
	@Column(name = "date_input", length = 0)
	public Date getDateInput() {
		return this.dateInput;
	}

	public void setDateInput(Date dateInput) {
		this.dateInput = dateInput;
	}

	@Column(name = "owner", length = 40)
	public String getOwner() {
		return this.owner;
	}

	public void setOwner(String owner) {
		this.owner = owner;
	}
	@Transient
	public String getWellNames() {
		return wellNames;
	}

	public void setWellNames(String wellNames) {
		this.wellNames = wellNames;
	}
	@Transient
	public List<WellBasicData> getWellList() {
		return wellList;
	}

	public void setWellList(List<WellBasicData> wellList) {
		this.wellList = wellList;
	}

}